home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / lprm.z / lprm
Text File  |  1998-10-30  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4. LLLLPPPPRRRRMMMM((((1111))))                         PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss                         LLLLPPPPRRRRMMMM((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      lprm - remove jobs from the BSD line printer spooling queue
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      llllpppprrrrmmmm [ ----PPPP_p_r_i_n_t_e_r ] [ ---- ] [ job # ...  ] [ user ...  ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _L_p_r_m will remove a job, or jobs, from a printer's spool queue.  Since the
  16.      spooling directory is protected from users, using _l_p_r_m is normally the
  17.      only method by which a user may remove a job.
  18.  
  19.      _L_p_r_m without any arguments will delete the currently active job if it is
  20.      owned by the user who invoked _l_p_r_m.
  21.  
  22.      If the ---- flag is specified, _l_p_r_m will remove all jobs which a user owns.
  23.      If the super-user employs this flag, the spool queue will be emptied
  24.      entirely. The owner is determined by the user's login name and host name
  25.      on the machine where the _l_p_r command was invoked.
  26.  
  27.      Specifying a user's name, or list of user names, will cause _l_p_r_m to
  28.      attempt to remove any jobs queued belonging to that user (or users).
  29.      This form of invoking _l_p_r_m is useful only to the super-user.
  30.  
  31.      A user may dequeue an individual job by specifying its job number.  This
  32.      number may be obtained from the _l_p_q(1) program, e.g.
  33.  
  34.           % lpq -l
  35.  
  36.           1st: ken                          [job #013ucbarpa]
  37.                (standard input)             100 bytes
  38.           % lprm 13
  39.  
  40.      _L_p_r_m will announce the names of any files it removes and is silent if
  41.      there are no jobs in the queue which match the request list.
  42.  
  43.      _L_p_r_m will kill off an active daemon, if necessary, before removing any
  44.      spooling files.  If a daemon is killed, a new one is automatically
  45.      restarted upon completion of file removals.
  46.  
  47.      The ----PPPP option may be usd to specify the queue associated with a specific
  48.      printer (otherwise the default printer, or the value of the PRINTER
  49.      variable in the environment is used).
  50.  
  51. FFFFIIIILLLLEEEESSSS
  52.      /etc/printcap       printer characteristics file
  53.      /usr/spool/*        spooling directories
  54.      /usr/spool/*/lock   lock file used to obtain the pid of the current
  55.                          daemon and the job number of the currently active job
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. LLLLPPPPRRRRMMMM((((1111))))                         PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss                         LLLLPPPPRRRRMMMM((((1111))))
  71.  
  72.  
  73.  
  74. SEE ALSO
  75.      lpr(1), lpq(1), lpd(1M)
  76.  
  77. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  78.      ``Permission denied" if the user tries to remove files other than his
  79.      own.
  80.  
  81. BBBBUUUUGGGGSSSS
  82.      Since there are race conditions possible in the update of the lock file,
  83.      the currently active job may be incorrectly identified.
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.